import React, { Component } from 'react'
export default class Todos extends Component {
  render() {
	return (
	  <div>
		  <h4>todoList</h4>
		  <hr />
		  <ul>
			  {
				  this.props.todos.map( (item,index)=>(
					  <li key={index}>
						  <header>{item.title}</header>
						  <div>{item.content}</div>
					  </li>
				  ) )
			  }
		  </ul>
	  </div>
	)
  }
}

